//
// Created by LiuYou on 2021/5/1.
//


#include <string>
#include <iostream>

using String = std::string;

struct Name {
    String firstName;
    String lastName;
};

int main() {
    // 这种写法是可以的。
    Name name[2]{
            {.firstName="冲", .lastName="不冲"},
            {.firstName="干", .lastName="不干"}
    };

    for (const auto& item : name) {
        std::cout << item.firstName << " " << item.lastName << std::endl;
    }
    return 0;
}